object mainEven {
	def main():Unit={
		{
			println("even numbers between 0 and 100 are :");
			println(new Evens().getEvens(100));
			
		}
	}
}


class Evens{
	def getEvens(target:Int):String={
		var acc : String;
		var i : Int;
		var j:Int;
		acc = "0";
		i = 1;
		while(i<target){
			j = 2*i;
			if(j<target){
				acc = acc+", "+j;
			}
			i = i+1;
		}
		return acc;
	}
}
